package com.xiaocui.shoppingmall.userauth;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * project: shoppingmall
 * package: com.xiaocui.shoppingmall.userauth.controller
 * describe:
 *          控制器：用户相关控制器
 *
 * @author vstarcui
 * @create 2018-03-06 15:29
 */
@RestController
@Api(description = "用户Api")
@RequestMapping("v1")
public class SysUserController {
    @GetMapping("/getString")
    @ApiOperation(value="删除图书", notes="根据url的id来指定删除图书")
    public String getString(){
        return "123454";
    }
   /* @PostMapping("/login_p")
    public void login(HttpServletResponse resp) throws IOException {
        resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
        resp.setContentType("application/json;charset=UTF-8");
        PrintWriter out = resp.getWriter();
        out.write("{\"status\":\"error\",\"msg\":\"尚未登录，请登录!\"}");
        out.flush();
        out.close();
        //        return new RespBean("error", "尚未登录，请登录!");
    }*/
}
